/* pages/operation-center/project-detail/index.wxss */
.creatPage {
    height: 100vh;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 24rpx;
}

.createHeader {
    .detail {
        padding: 24rpx;
    }

    .info {
        background: #fff;
        padding: 0 24rpx;
        border-radius: 24rpx;
    }

    .infoItem {
        display: flex;
        font-size: 28rpx;
        align-items: center;
        padding: 24rpx 0;
        border-bottom: #edeef0 1px solid;

        &:last-child {
            border-color: transparent;
        }

        .label {
            display: flex;
            align-items: center;
            gap: 10rpx;
            width: 6rem;
            color: #adb5bd;
        }
    }
}

.creatBody {
    flex-grow: 1;
    height: 0;

    .deviceList {
        padding: 0 24rpx;

        .list {
            background: #fff;
            position: relative;
            border-radius: 24rpx;
            display: flex;
            flex-direction: column;
            gap: 24rpx;
            padding: 0 24rpx 100rpx 24rpx;
        }

        .title {
            position: sticky;
            left: 0;
            top: 0;
            background: #fff;
            padding: 24rpx;
            display: flex;
            gap: 12rpx;
            align-items: center;
            z-index: 2;
            border-bottom: #edeef0 2rpx solid;
            .text {
                position: relative;

                .badge {
                    position: absolute;
                    right: -36rpx;
                    top: -6rpx;
                    font-size: 20rpx;
                    background: #058aff;
                    color: #fff;
                    width: 32rpx;
                    height: 32rpx;
                    line-height: 32rpx;
                    border-radius: 50%;
                    text-align: center;
                }
            }
        }

        .listItem {
            display: flex;
            align-items: center;
            font-size: 24rpx;
            background: #f8f9fa;
            padding: 18rpx 24rpx;
            border-radius: 8rpx;
            border: #edeef0 2rpx solid;
            gap: 24rpx;

            .index {
                width: 36rpx;
                text-align: right;
                color: #adb5bd;
                font-size: 20rpx;
            }

            .name {
                position: relative;
                display: flex;
                align-items: center;
                gap: 20rpx;

                &:before {
                    content: '';
                    display: block;
                    width: 8rpx;
                    height: 8rpx;
                    background: #16d241;
                    border-radius: 50%;
                    animation: blink 3s infinite;
                }
            }
        }
    }
}
@keyframes blink {
  0%,
  35%,
  65%,
  100% {
    opacity: 1;
    filter: brightness(1.2) drop-shadow(0 0 4px #16d241);
  }
  40%,
  60% {
    opacity: 0.5;
    filter: brightness(0.8);
  }
  50% {
    opacity: 0.3;
    filter: brightness(0.5);
  }
}